package org.gd.hellojaxb.privat24.calendar;

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "data")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder = {"state", "message", "pays"})
public class CalendarData {

    @XmlAttribute(name = "sign")
    private String sign;
    @XmlElement(name = "state")
    private CalendarState state;
    @XmlElement(name = "message")
    private String message;
    @XmlElement(name = "pay")
    @XmlElementWrapper(name = "pays")
    private CalendarPays pays;

    public String getMessage() {
        return message;
    }

    public CalendarData setMessage(String message) {
        this.message = message;
        return this;
    }

    public CalendarPays getPays() {
        return pays;
    }

    public CalendarData setPays(CalendarPays pays) {
        this.pays = pays;
        return this;
    }

    public String getSign() {
        return sign;
    }

    public CalendarData setSign(String sign) {
        this.sign = sign;
        return this;
    }

    public CalendarState getState() {
        return state;
    }

    public CalendarData setState(CalendarState state) {
        this.state = state;
        return this;
    }
}
